package com.example.order1.Controller;

import com.example.order1.Model.Order;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Order1Controller {
    @GetMapping("/order/{id}")
    public String findOrderById(@PathVariable String id) {
        System.out.println("7901");
        Order order = new Order();
        order.setId("456");
        order.setPrice(53.2);
        order.setReceiverAddress("山东");
        order.setReceiverName("李四");
        order.setReceiverPhone("119");
        return order.toString();
    }
}
